import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import {post,fetch,patch,put} from './utils/fetch/http'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/common.scss';
 
// 引入vue-echarts依赖
import ECharts from 'vue-echarts/components/ECharts'
// 引入echarts主题
import theme from '@/assets/json/technology.json'
// 注册echarts主题
ECharts.registerTheme('technology', theme);
// vue-echarts依赖 ----按需引入
// import 'echarts/lib/chart/line'
import 'echarts-gl'
// 全局注册v-chart图表组件
Vue.component('v-chart', ECharts)

//定义全局变量
Vue.prototype.$post=post;
Vue.prototype.$fetch=fetch;
Vue.prototype.$patch=patch;
Vue.prototype.$put=put;

Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
